package erfgame.core.world.terrain.color;

import java.util.Random;


import erfgame.core.Rotation;
import erfgame.core.world.World;

public class RandomTerrainColorMapFactory 
	implements TerrainColorMapFactory {
	
	private int minColor;
	private int maxColor;
	private Random random;
	
	public RandomTerrainColorMapFactory(
			int minColor, 
			int maxColor, 
			Random random
	) {
		this.minColor = minColor;
		this.maxColor = maxColor;
		this.random = random;
	}

	public int[][][] getColorMap(World world, int width, int height, int depth) {
		return MappedTerrainColorSource.getRandomColorMap(
				minColor, 
				maxColor, 
				random, 
				width, 
				height, 
				depth
		);
	}

}
